Revert "shooter: Make sure to free the surface"
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Sep 2013 01:59:05 +0000 (21:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Sep 2013 02:20:20 +0000 (22:20 -0400)
This reverts commit 1a0c5acb26bee3df52b75cf34b95c4d93810f3b7.

docs/tools/shooter.c

index e05cfb563a4dfdf4c112e0b1510ab59b0ad84155..84c993e25cbd30631bb5856a4b4888d3a5602d25 100644 (file)
@@ -120,7 +120,6 @@ int main (int argc, char **argv)
       filename = g_strdup_printf ("./%s.png", info->name);
       g_assert (cairo_surface_write_to_png (surface, filename) == CAIRO_STATUS_SUCCESS);
       g_free (filename);
-      cairo_surface_destroy (surface);
     }
 
   return 0;